<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>添加菜谱管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/mess/messHall/">菜谱列表</a></li>
		<shiro:hasPermission name="mess:messHall:edit"><li><a href="${ctx}/mess/messHall/form">菜谱添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="inputForm"
			   modelAttribute="messHall"
			   action="${ctx}/mess/messHall/list"
			   method="post"
			   class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>

		<legend>菜谱详情</legend>
		<h3 style="text-align: center">  ${beginDate} -- ${endDate}</h3><br>
		<div class="control-group">
			<table id="contentTable" class="table table-striped table-bordered table-condensed">
				<thead>
				<tr>
					<th title="餐次">餐次</th>
					<th >星期一</th>
					<th >星期二</th>
					<th >星期三</th>
					<th >星期四</th>
					<th >星期五</th>
					<th >星期六</th>
					<th >星期日</th>
				</tr></thead>
				<tbody>


<%--					<c:forEach items="${messHallList}" var="list" varStatus="vs">--%>
<%--						<tr>--%>
<%--						<td>${list.餐次}</td>--%>

<%--						<td>${list.星期一}</td>--%>
<%--						<td>${list.星期二}</td>--%>
<%--						<td>${list.星期三}</td>--%>
<%--						<td>${list.星期四}</td>--%>
<%--						<td>${list.星期五}</td>--%>
<%--						<td>${list.星期六}</td>--%>
<%--						<td>${list.星期日}</td>--%>
<%--						</tr>--%>
<%--					</c:forEach>--%>

				        <c:forEach items="${messHallList}" var = "list" varStatus="vs">
							<tr>
								<c:forEach  items="${list}" var="item">
									<td> ${item}</td>
								</c:forEach>
							</tr>
						</c:forEach>
                </tbody>
            </table>
        </div>

	</form:form>
</body>
</html>